home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
libmat.lha
/
src
/
mconstmult2.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
229b
|
14 lines
// MATRIX LIB
// TOMMY JOHANSSON 1995
#include "matrix.h"
Matrix operator * (const Matrix& A,float x)
{
int i,j;
Matrix C(A.m,A.n);
for(i=1;i<=A.m;i++)
for(j=1;j<=A.n;j++)
C.koff[i][j]=x*A.koff[i][j];
return(C);
}